package com.ruoyi.project.im.users.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户管理对象 users
 *
 * @author ruoyi
 * @date 2022-08-12
 */
public class Users extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String name;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String faceUrl;

    /**
     * 性别
     */
    @Excel(name = "性别")
    private Integer gender;

    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String phoneNumber;

    /**
     * 生日
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birth;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String email;

    /**
     * 扩展
     */
    @Excel(name = "扩展")
    private String ex;

    /**
     * 2系统管理员  3客服 1普通用户
     */
    @Excel(name = "2系统管理员  3客服 1普通用户")
    private Integer appMangerLevel;

    /**
     * 微信UUID
     */
    @Excel(name = "微信UUID")
    private String wxUuid;

    /**
     * 客服登入密码
     */
    @Excel(name = "客服登入密码")
    private String password;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;
    private String lastLoginIp;
    private String lastLoginCity;


    private String kefuId;

    @Excel(name = "客服唯一code")
    private String code;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @Excel(name = "卡密")
    private String kamicode;

    public Integer getIsEnd() {
        return isEnd;
    }

    public void setIsEnd(Integer isEnd) {
        this.isEnd = isEnd;
    }

    private Integer isEnd;

    private String createUser;

    public Integer getActStatus() {
        return actStatus;
    }

    public void setActStatus(Integer actStatus) {
        this.actStatus = actStatus;
    }

    private Integer actStatus;

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getKamicode() {
        return kamicode;
    }

    public void setKamicode(String kamicode) {
        this.kamicode = kamicode;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getKefuId() {
        return kefuId;
    }

    public void setKefuId(String kefuId) {
        this.kefuId = kefuId;
    }

    /**
     * 0 游客 1 全能  2 微信码
     */
    @Excel(name = "0 游客 1 全能  2 微信码")
    private Long kfType;


    public String getLastLoginCity() {
        return lastLoginCity;
    }

    public void setLastLoginCity(String lastLoginCity) {
        this.lastLoginCity = lastLoginCity;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    /**
     *
     */
    @Excel(name = "")
    private Integer globalRecvMsgOpt;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setFaceUrl(String faceUrl) {
        this.faceUrl = faceUrl;
    }

    public String getFaceUrl() {
        return faceUrl;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getGender() {
        return gender;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public Date getBirth() {
        return birth;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEmail() {
        return email;
    }

    public void setEx(String ex) {
        this.ex = ex;
    }

    public String getEx() {
        return ex;
    }

    public void setAppMangerLevel(Integer appMangerLevel) {
        this.appMangerLevel = appMangerLevel;
    }

    public Integer getAppMangerLevel() {
        return appMangerLevel;
    }

    public void setWxUuid(String wxUuid) {
        this.wxUuid = wxUuid;
    }

    public String getWxUuid() {
        return wxUuid;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setGlobalRecvMsgOpt(Integer globalRecvMsgOpt) {
        this.globalRecvMsgOpt = globalRecvMsgOpt;
    }

    public Integer getGlobalRecvMsgOpt() {
        return globalRecvMsgOpt;
    }


    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setKfType(Long kfType) {
        this.kfType = kfType;
    }

    public Long getKfType() {
        return kfType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("name", getName())
                .append("faceUrl", getFaceUrl())
                .append("gender", getGender())
                .append("phoneNumber", getPhoneNumber())
                .append("birth", getBirth())
                .append("email", getEmail())
                .append("ex", getEx())
                .append("appMangerLevel", getAppMangerLevel())
                .append("wxUuid", getWxUuid())
                .append("password", getPassword())
                .append("globalRecvMsgOpt", getGlobalRecvMsgOpt())
                .append("createTime", getCreateTime())
                .append("code", getCode())
                .append("endTime", getEndTime())
                .append("kfType", getKfType())
                .append("kefuId", getKefuId())
                .append("createUser", getCreateUser())
                .append("actStatus", getActStatus())
                .toString();
    }
}
